<%@page import="org.lxy.domain.RecyclePointEntity"%>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="org.springframework.web.context.WebApplicationContext" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
     <base href="<%=basePath %>"/>
    <title>Edit</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
 <link rel="Stylesheet" href="/css/Form.css" />
    <link href="/css/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/js/jquery-1.9.1.js"></script>
    <style type="text/css">
      {
            margin: 0px;
            padding: 0px;
            font-weight: bold;
       }
        .td_right
       {
            text-align: right;
      }
    </style>
  </head>
  
  <body>
    <form id="form1" action="/recyclepoint/edit" method="post" >
    <div>
    <%
        WebApplicationContext context= WebApplicationContextUtils.getWebApplicationContext(application);
        RecyclePointEntity entity = (RecyclePointEntity) request.getAttribute("entitys");
    %>
        <table style="text-align: center; vertical-align: middle; line-height: 50px; margin-left: 20px;
            margin-top: 20px;">
                <input type="hidden" id="id" name="id" value="<%=entity.getId() == null ? 0 : entity.getId()%>"/>
           
		   <tr>
                <td class="td_right">
                 名称：
                </td>
                <td>
                <input type="text" id="mingcheng" name="mingcheng"  style="width:500px;" class="search_txt" value="<%=entity.getName()==null?"":entity.getName()%>"/>
                </td>
            </tr><tr>
                <td class="td_right">
                 地址：
                </td>
                <td>
                <input type="text" id="dizhi" name="dizhi" style="width:500px;" class="search_txt" value="<%=entity.getAddress()==null?"":entity.getAddress()%>"/>
                </td>
            </tr><tr>
                <td class="td_right">
                 简介：
                </td>
                <td>
                <textarea id="jianjie" style="width:500px;height:300px;" name="jianjie"  class="search_txt" value="<%=entity.getInfo()==null?"":entity.getInfo()%>"></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                <input  type="submit" id="btnOK" value="保存" class="btn_css submitbg"/>
                    <input type="button" id="btnCZ" value="关闭" onclick="window.parent.closedialog();"
                        class="btn_css reserbg" style="margin-left: 20px;" />
                </td>
            </tr>
        </table>
    </div>
    </form>
  </body>
</html>
